<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>盘盈盘亏管理</title>
<link rel="stylesheet" type="text/css" href="ui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="ui/themes/icon.css">
<script type="text/javascript" src="ui/jquery.min.js"></script>
<script type="text/javascript" src="ui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="ui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="ui/jquery.serializejson.min.js"></script>
<script type="text/javascript" src="js/crud.js"></script>
<script type="text/javascript">
	var name="inventory";
	var columns=[[
	  		    {field:'uuid',title:'编号',width:100},
	  		    {field:'goodsuuid',title:'商品',width:100},
	  		    {field:'storeuuid',title:'仓库',width:100},
	  		    {field:'num',title:'数量',width:100},
	  		    {field:'type',title:'类型',width:100},
	  		    {field:'createtime',title:'登记日期',width:100},
	  		    {field:'checktime',title:'审核日期',width:100},
	  		    {field:'creater',title:'登记人',width:100},
	  		    {field:'checker',title:'审核人',width:100},
	  		    {field:'state',title:'状态',width:100},
	  		    {field:'remark',title:'备注',width:100},

			    {field:'-',title:'操作',width:200,formatter:function(value,row,index)
			    	{
			    		return "<a href='#' onclick='edit("+row.uuid+")'>修改</a> <a href='#' onclick='dele("+row.uuid+")'>删除</a>";
			    	}}		    
			          ]];

</script>
</head>
<body>
<div class="easyui-panel">
<form id="searchForm">
	商品：<input name="t1.goodsuuid" >
	仓库：<input name="t1.storeuuid" >
	数量：<input name="t1.num" >
	类型：<input name="t1.type" >
	登记日期：<input name="t1.createtime" >
	审核日期：<input name="t1.checktime" >
	登记人：<input name="t1.creater" >
	审核人：<input name="t1.checker" >
	状态：<input name="t1.state" >
	备注：<input name="t1.remark" >

	<button type="button" id="btnSearch">查询</button>
</form>
</div>
<table id="grid"></table>
<div id="editWindow" class="easyui-window" title="盘盈盘亏编辑" 
	style="width: 300px;height: 200px" data-options="closed:true">
	<form id="editForm">
	<input name="t.uuid" type="hidden"> 

		<table>
			<tr>
				<td>商品</td><td><input name="t.goodsuuid"> </td>
			</tr>
			<tr>
				<td>仓库</td><td><input name="t.storeuuid"> </td>
			</tr>
			<tr>
				<td>数量</td><td><input name="t.num"> </td>
			</tr>
			<tr>
				<td>类型</td><td><input name="t.type"> </td>
			</tr>
			<tr>
				<td>登记日期</td><td><input name="t.createtime"> </td>
			</tr>
			<tr>
				<td>审核日期</td><td><input name="t.checktime"> </td>
			</tr>
			<tr>
				<td>登记人</td><td><input name="t.creater"> </td>
			</tr>
			<tr>
				<td>审核人</td><td><input name="t.checker"> </td>
			</tr>
			<tr>
				<td>状态</td><td><input name="t.state"> </td>
			</tr>
			<tr>
				<td>备注</td><td><input name="t.remark"> </td>
			</tr>

		</table>	
		<button id="btnSave" type="button">保存</button>
	</form>
</div>

</body>
</html>
